from meiduo_mall.utils.ytx_sdk.sendSMS import CCP
# 定义函数包含耗时的代码
from celery_tasks.main import app


@app.task(name='send_sms_code')
def send_sms_code(mobile, sms_code, expries, temp_id):
    """
    发送手机验证码
    :param mobile: 手机号
    :param sms_code: 验证码
    :param expries: 过期时间
    :param temp_id: 验证码模板编号
    :return:
    """
    try:
        print(sms_code)
        # CCP.sendTemplateSMS(mobile,sms_code,expries,temp_id)
    except:
        return '短信验证码发送失败'